import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

import uView from "uview-ui";
Vue.use(uView);
//普通加载动画
import Loading from './components/loading/loading.vue'
Vue.component('Loading', Loading)
//活动中加载动画
import gameLoading from './components/loading/gameLoading.vue'
Vue.component('gameLoading', gameLoading)
//活动通用背景组件
import gameBasics from './components/gameBasics/gameBasics.vue'
Vue.component('gameBasics', gameBasics)
//自定义底部导航栏
import tqbTabbar from './components/tqb-tabbar/tqb-tabbar.vue'
Vue.component('tqbTabbar', tqbTabbar)

import waterfall from './components/u-waterfall/u-waterfall.vue'
Vue.component('my-waterfall', waterfall)


import { myRequest ,myRequestWs, BASE_URL } from './util/request.js';
import { uploadFiles,uploadImage } from './util/api.js';
import util from './util/util.js';
import ws from './util/ws.js' 
Vue.prototype.$ws = ws
// 背景音乐 创建及销毁
import {clearUp,audioStop} from './util/ws_util.js';
Vue.prototype.$clearUp=clearUp
Vue.prototype.$audioStop=audioStop

console.log('地址',BASE_URL)
Vue.prototype.$myRuquest = myRequest; 
Vue.prototype.$myRuquestWs=myRequestWs;
Vue.prototype.$baseURL = BASE_URL;
Vue.prototype.$uploadFiles=uploadFiles
Vue.prototype.$uploadImage=uploadImage
Vue.prototype.$util = util;


import request from './util/req.js'
Vue.prototype.$H = request;



import store from './store'
const app = new Vue({
    ...App,
		store
})

// console.log = () => {};
 
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

